package com.shycloud.mido.homework.api.feign;

import java.util.Map;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.shycloud.mido.common.core.util.R;

/**
 * @author nianhua.jiang
 * @description 学生模块 feign 调用类
 * @date 2020/6/27
 */
@FeignClient("shycloud-member-biz")
public interface StudentFeignService {

	@GetMapping("/teacherStudent/getStudentId")
	String getStudentId(@RequestParam("memberId") String memberId);

	@GetMapping("/teacherStudent/getStudentInfo")
	R getStudentDetail(@RequestParam("studentId") String studentId);

	@GetMapping("/teacherStudent/getStudentList")
	R getStudentList(@RequestParam("teacherId") String teacherId);

	@GetMapping("/teacherStudent/getStuAssignBal")
	Map getStudentAssignBal(@RequestParam("studentId") String studentId);

	@GetMapping("/teacherStudent/consumeAssignBal")
	Boolean consumeAssignBal(@RequestParam("studentId") String studentId,
					   @RequestParam("curConsume")Integer curConsume,
					   @RequestParam("nextConsume")Integer nextConsume);

}
